/*
 * main.cpp
 *
 *  Created on: 15.04.2012
 *      Author: Eugene Kornykhin
 */

#include "Parser.h"
#include "Poliz.h"
#include "Interpreter.h"
#include <fstream>
#include <iostream>
using namespace std;

int main(int argc, char **argv)
{
		Parser parser;

		ifstream input(argv[1]);
		if (input.fail()) {
			cerr << "Input file `" << argv[1] << "' couldn't be opened; aborted" << endl;
			return 1;
		}
		parser.parse(input);

		Interpreter interpreter;
		interpreter.interpret(parser.getPoliz(), parser.getVars());
}

